#ifndef RESISTOR_H
#define RESISTOR_H

#include "circuitcomponent.h"

class Resistor : public CircuitComponent
{
    Q_OBJECT
public:
    explicit Resistor(QGraphicsItem *parent = nullptr);

    QPointF inputPort() const override;
    QPointF outputPort() const override;
    void setText(const QString & text);

protected:
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
    QRectF boundingRect() const override;

private:
    QString m_text="";
};

#endif // RESISTOR_H
